import React, { Component } from 'react';

export default class SubNavMenu extends Component {
    constructor(props) {
        super(props);

    }
    static defaultProps = {
        data: []
    }
    render() {
        const { data } = this.props;
        const renderMenu = data.map((a, key) => {
            return(
            <div className="subNavMenu" key={key}>
                {a.label}
            </div>)
        });
        return (
            <div className="subNav">
                {renderMenu}
            </div>
        )
    }
} 